﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplicationWithGrid
{
    class WorkFlow : Wrapper
    {
        //parameter to display in workflow graph
        private float hitratio;
        private float successratio;
        private float avgTime;

        //usernumber
        private int webUser;
        private int mobileUser;
        private int broker;

        private static WorkFlow workflow = null;
        private WorkFlow()
        {
            hitratio = 0;
            successratio = 0;
            avgTime = 0;
            webUser = 0;
            mobileUser = 0;
            broker = 0;
        }

        public static WorkFlow getWorkFlow() {
            if (workflow == null) workflow = new WorkFlow();
            return workflow;

        }

        public float HitRatio
        {
            get {return this.hitratio;}
            set { this.hitratio = value;}
        }

        public float SucessRatio
        {
            get { return this.successratio; }
            set { this.successratio = value; }
        }

        public float AvgTime
        {
            get { return this.avgTime; }
            set { this.avgTime = value; }
        }

        public int WebUser
        {
            get { return this.webUser; }
            set { this.webUser = value; }
        }

        public int MobileUser
        {
            get { return this.mobileUser; }
            set { this.mobileUser = value; }
        }

        public int Broker
        {
            get { return this.broker; }
            set { this.broker = value; }
        }



    }

}
